package com.jackeys.piaems.service;

import com.jackeys.piaems.entity.Payment;
import com.jackeys.piaems.vo.ResponseVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @InterfaceName: PaymentService
 * @Description: 账单业务层接口
 * @Author: Jackeys
 * @Date: 2021-06-17 20:24
 * @Version: 1.0
 */
public interface PaymentService {

    //添加账单
    ResponseVo addPayment(Long userId, Long categoryId, Float cost, String remark, Integer flag);

    //删除账单
    ResponseVo deletePayment(Long id);

    //修改账单
    ResponseVo updatePayment(Long id, Long categoryId, Float cost, String remark, Integer flag);

    //根据日期查询账单详情
    ResponseVo queryPaymentsByDate(Long userId, Date date, Integer flag);

    //查询用户总支出与总收入
    ResponseVo queryTotalInAndOutByUserId(Long userId);

    //查询总概
    ResponseVo queryTotalList(Long userId, Integer page, Integer flag);

    //返回给前端图
    ResponseVo selectAllPayment(Long userId, Integer flag);
}
